#ifndef _SENDER_H_
#define _SENDER_H_

#include <QObject>
#include <QString>
#include <QUrl>

class QNetworkAccessManager;
class QNetworkReply;

namespace Tubox {

class Sender : public QObject {
Q_OBJECT
public:
	
	Sender(const QString &serverUrl, const short unsigned int port);
	~Sender();
	void send(const QString& request);
	void uploadFile();
  
signals:
	void sigReply(QNetworkReply *reply);
private:
	QUrl serverUrl;
	const short unsigned int port;
	QNetworkAccessManager *networkManager;
};

}

#endif

